
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MQTT_ALARM_H
#define __MQTT_ALARM_H

#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "cx32l003_hal.h"
#include "cx32l003_starterkit.h"

/* Private includes ----------------------------------------------------------*/

#include "io_mapping.h"

/* Exported macros-------------------------------------------------------------*/

/* Exported functions prototypes ---------------------------------------------*/

/* Private defines -----------------------------------------------------------*/
void alarm_status_net_channel(uint8_t type,uint8_t data,uint8_t state ,uint8_t net_channel);
void alarm_status_interface(uint8_t type,uint8_t data,uint8_t state );
void alarm_DIY_status_interface(uint16_t type,uint16_t pinid,uint8_t data,uint8_t state,char * name);
void alarm_recover_all( void );

void Network_4G_detection_alarm( uint8_t status );
void Network_TCP_detection_alarm( uint8_t status );

void Door_open_alarm_event(uint8_t state);
void Smoke_alarm_event(uint8_t state);
void Waterlogging_alarm_event(uint8_t state);

void Power_Temp_Controlled_Fan(uint16_t temp);

void VIN_PWR_alarm_event(uint8_t state);
void PWR_DET_alarm_event(uint8_t state);

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

